using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.ComponentModel;
using System.Xml.Linq;

namespace Petaframe.Logging.Configuration
{
    internal class EventLogConfigurationElement : CustomConfigurationElement
    {
        public EventLogConfigurationElement(XElement loggerElement)
            : base(loggerElement)
        {

        }

        public string LogName
        {
            get
            {

                var key = element.Attribute("logName");

                if (key == null)
                    return string.Empty;

                return key.Value;
            }
        }
    }
}
